﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Shared/MasterPages/Administration.master" CodeBehind="Employees.aspx.vb" Inherits="SISSAT.WebDevelopment.Pages.Administration.Employees" %>
<%@ Register TagPrefix="sissat" TagName="EmployeeDetailControl" Src="/Shared/UserControls/EmployeeDetailControl.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentPlaceHolder" runat="server">
    <asp:MultiView ID="EmployeeViews" runat="server" ActiveViewIndex="0">
        <asp:View ID="ListView" runat="server">
            <table class="employee">
                <asp:Repeater ID="EmployeeRepeater" runat="server">
                    <HeaderTemplate>
                        <tr class="header">
                            <td class="col1">Code</td>
		                    <td class="col2">Name</td>
                            <td class="col3">E-mail Address</td>
		                    <td class="col4">Contact No.</td>
                            <td class="col5"></td>
	                    </tr>
                        <tr>
                            <td colspan="5"><hr /></td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="contentdata">
		                    <td><%#Eval("EmployeeCode")%></td>
		                    <td class="alignl"><%#Eval("FirstName")%> <%#Eval("LastName")%></td>
                            <td class="alignl"><%#Eval("EmailAddress")%></td>
                            <td class="alignl"><%#Eval("ContactNumber")%></td>
                            <td>
                                <a href='/Pages/Administration/Employees.aspx?code=<%#Eval("EmployeeCode") %>' class='fcolor1' title='Edit <%#Eval("EmployeeCode") %> Details'>Edit</a>
                            </td>
	                    </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </asp:View>
        <asp:View ID="DetailView" runat="server">
            <div class="profile">
                <div class="info center">
                    <sissat:EmployeeDetailControl ID="EmployeeDetailControl" runat="server" />  
                </div>
            </div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
